package com.sunsys.cxf.examples;

import javax.jws.WebService;


/**
 *	Writing Service Endpoint Interface (SEI)
 *		Service Endpoint Interface is standard java interface, and
 *		add the JAX-WS 's @WebService annotation at the interface level as Shown in the bellow example
 *
 *	some of the attributes of @WebService  can be specified only in service implementation class 
 *
 *	@WebService		attributes those we CAN'T specify in SEI		
 * 			serviceName				specifies the published service
 * 			endpointInterface		specifies the name of the SEI, that the implementation class implements
 *			portName				Specifies the name of the endpoint at which the service is published. This property is mapped to 
 *									the name attribute of the wsdl:port element that specifies the endpoint details for a published service.				
 * 
 */
  


@WebService(endpointInterface="com.sunsys.cxf.examples.MessageService", serviceName="MessageWebSerice", portName="messageServicePort")
public class MessageServiceImpl implements MessageService{

	@Override
	public String message(String message) {
		return "message resived by service is:"+message;
	}
}